﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace FakeXiecheng.API.Migrations
{
    public partial class UpdateTouristRouteSchema : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "DepartureCity",
                table: "TouristRoutes",
                nullable: true);

            migrationBuilder.AddColumn<double>(
                name: "Rating",
                table: "TouristRoutes",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "TravelDays",
                table: "TouristRoutes",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "TripType",
                table: "TouristRoutes",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"),
                columns: new[] { "DepartureCity", "Description", "Features", "Fees", "Notes", "Rating", "Title", "TravelDays", "TripType" },
                values: new object[] { 0, "���ٷ��콢�꡿", "�����ֻ��۸����", "���ð���", "����", 3.5, "����+����+����3��2����5�꣩", 8, 0 });

            migrationBuilder.UpdateData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"),
                columns: new[] { "DepartureCity", "Description", "Features", "Fees", "Notes", "Rating", "Title", "TravelDays", "TripType" },
                values: new object[] { 0, "���ٷ��콢�꡿", "�����ֻ��۸����", "���ð���", "����", 3.5, "���ܶ�+¬����+�캣red See+����+����ɽ����12�գ�5�꣩", 8, 0 });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DepartureCity",
                table: "TouristRoutes");

            migrationBuilder.DropColumn(
                name: "Rating",
                table: "TouristRoutes");

            migrationBuilder.DropColumn(
                name: "TravelDays",
                table: "TouristRoutes");

            migrationBuilder.DropColumn(
                name: "TripType",
                table: "TouristRoutes");

            migrationBuilder.UpdateData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("a1fd0bee-0afc-4586-96c8-f46b7c99d2a0"),
                columns: new[] { "Description", "Features", "Fees", "Notes", "Title" },
                values: new object[] { "�ٷ��콢��", "<div><p>�����ֻ��۸����</p></div>", "<div><dt>���ð���</dt></div>", "<p>����</p>", "С��˹" });

            migrationBuilder.UpdateData(
                table: "TouristRoutes",
                keyColumn: "Id",
                keyValue: new Guid("fb6d4f10-79ed-4aff-a915-4ce29dc9c7e1"),
                columns: new[] { "Description", "Features", "Fees", "Notes", "Title" },
                values: new object[] { "�ٷ��콢��", "<div><p>�����ֻ��۸����</p></div>", "<div><dt>���ð���</dt></div>", "<p>����</p>", "���ܶ�" });
        }
    }
}
